import { searchVO, UnitPrice } from "@/typings";
import requestWithToken from "@/utils/request";

export const saveUnit = (data: UnitPrice) => {
  return requestWithToken("/unit-price/save", "POST", data);
};
export const listUnit = (data: searchVO) => {
  return requestWithToken("/unit-price/list", "GET", data);
};
export const deleteUnit = (id: string) => {
  return requestWithToken("/unit-price/delete", "GET", { id });
};
